<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>填词</title>


    <link rel="shortcut icon" href="favicon.ico">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="/Public/Admin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="/Public/Admin/css/style.min.css?v=4.1.0" rel="stylesheet">

    <style>
        .pages a,
        .pages span {
            display: inline-block;
            padding: 5px 18px;
            margin: 0 1px;
            border: 1px solid #f0f0f0;
            -webkit-border-radius: 3px;
            -moz-border-radius: 3px;
            border-radius: 3px;
            font-size: 15px;
        }

        .pages a,
        .pages li {
            display: inline-block;
            list-style: none;
            text-decoration: none;
            color: #58A0D3;
        }

        .pages a.first,
        .pages a.prev,
        .pages a.next,
        .pages a.end {
            margin: 0;
        }

        .pages a:hover {
            border-color: #50A8E6;
        }

        .pages span.current {
            background: #50A8E6;
            color: #FFF;
            font-weight: 700;
            border-color: #50A8E6;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>填词
                        <small>用户列表</small>
                    </h5>

                </div>
                <div class="ibox-content">

                    <div>
                        <form role="form" class="form-inline" method="get">
                            <div class="form-group">
                                <label for="uid" class="sr-only">用户id</label>
                                <input name="uid" type="text" placeholder="用户id" id="uid" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="nickname" class="sr-only">用户昵称</label>
                                <input name="nickname" type="text" placeholder="用户昵称" id="nickname" class="form-control">
                            </div>

                            <div class="form-group">
                                <label for="prize_num" class="sr-only">通关次数</label>
                                <input name="prize_num" type="text" placeholder="通关次数" id="prize_num" class="form-control">
                            </div>

                            <div class="form-group">
                                <button class="btn btn-white" type="submit">搜索</button>
                            </div>

                        </form>
                    </div>

                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>用户ID</th>
                            <th>用户昵称</th>
                            <th>省份</th>
                            <th>城市</th>
                            <th>好友数</th>
                            <th>分享群数</th>
                            <th>剩余机会</th>
                            <th>通关次数</th>
                            <th>已挑战次数</th>
                            <th>可提现金额</th>
                            <th>总红包奖金</th>
                            <th>提现中金额</th>
                            <th>登陆次数</th>
                            <th>注册时间</th>
                            <th>最后登录时间</th>
                            <th>标签</th>
                        </tr>
                        </thead>
                        <tbody>

                        <?php
 if(! empty($data['user_list'])) { foreach($data['user_list'] as $key => $val) { ?>
                        <tr class="gradeX">
                            <td><?php echo ++$key;;?></td>
                            <td><?php echo ($val['uid']); ?></td>

                            <td class="feed-element">

                                <img alt="image" class="img-circle" src="<?php echo ($val['avatarurl']); ?>">
                                &nbsp;
                                <?php echo ($val['nickname']); ?>
                            </td>
                            <td class="center"><?php echo ($val['province']); ?></td>
                            <td class="center"><?php echo ($val['city']); ?></td>
                            <td class="center"><?php echo ($val['frendnum']); ?></td>
                            <td class="center"><?php echo ($val['sharegroup']); ?></td>
                            <td class="center"><?php echo ($val['game_num']); ?></td>
                            <td class="center"><?php echo ($val['prize_num']); ?></td>
                            <td class="center"><?php echo ($val['totle_num']); ?></td>
                            <td class="center"><?php echo ($val['money_total']); ?></td>

                            <td class="center"><?php echo ($val['total_money']); ?></td>
                            <td class="center"><?php echo ($val['lock_money']); ?></td>
                            <td class="center"><?php echo ($val['login_num']); ?></td>
                            <td class="center"><?php  echo date('Y-m-d H:i:s',$val['create_time']); ?></td>
                            <td class="center"><?php  echo date('Y-m-d H:i:s',$val['login_time']); ?></td>
                            <td class="center"><?php echo ($val['title']); ?></td>
                        </tr>


                        <?php
 } } ?>
                        <tr>
                            <td></td>
                            <td></td>

                            <td class="feed-element">

                            </td>
                            <td class="center"></td>
                            <td class="center"></td>
                            <td class="center">好友：<?php echo ($sum['frendnum']); ?></td>
                            <td class="center">分享：<?php echo ($sum['sharegroup']); ?></td>
                            <td class="center">机会：<?php echo ($sum['game_num']); ?></td>
                            <td class="center">通关：<?php echo ($sum['prize_num']); ?></td>
                            <td class="center">挑战：<?php echo ($sum['totle_num']); ?></td>
                            <td class="center">可提现：<?php echo ($sum['money_total']); ?></td>

                            <td class="center">总奖金：<?php echo ($sum['total_money']); ?></td>
                            <td class="center">提现中：<?php echo ($sum['lock_money']); ?></td>
                            <td class="center"></td>
                            <td class="center"></td>
                            <td class="center"></td>
                            <td class="center"></td>
                        </tr>


                        </tbody>

                    </table>

                    <div class="pages"><?php echo ($page); ?></div>

                </div>
            </div>
        </div>
    </div>

</div>

<script src="/Public/Admin/js/jquery.min.js?v=1.0"></script>
<script src="/Public/Admin/js/bootstrap.min.js?v=1.0"></script>
<script src="/Public/Admin/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/Public/Admin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="/Public/Admin/js/contabs.min.js?v=1.0"></script>


</body>

</html>